const Sequelize = require('sequelize');
const sqlconf = {
  host: "localhost",
  port: "3306",
  username: "root",
  password: "mWXS19971222@.",
  database: "sequelize",
}

module.exports = new Sequelize(sqlconf.database, sqlconf.username, sqlconf.password, {
  host: sqlconf.host,
  dialect: 'mysql',
  timezone: '+08:00',
  pool: {
    max: 5,
    min: 0,
    idle: 10000,
  },
  define: {
    timestamps: false
  }
});

